spi-bcm2835: Support pin groups other than 7-11
authorPhil Elwell <phil@raspberrypi.org>
Wed, 24 Jun 2015 13:10:44 +0000 (14:10 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:06 +0000 (17:28 +0000)
commit09f8a3f96add7626a02fe5663f58ae2daa7a7275
tree160fe163e4df760a72933c1290ed66fd1f3630b4
parent0a7a398d869d91f11eab2296420685df776196b3
spi-bcm2835: Support pin groups other than 7-11

The spi-bcm2835 driver automatically uses GPIO chip-selects due to
some unreliability of the native ones. In doing so it chooses the
same pins as the native chip-selects would use, but the existing
code always uses pins 7 and 8, wherever the SPI function is mapped.

Search the pinctrl group assigned to the driver for pins that
correspond to native chip-selects, and use those for GPIO chip-
selects.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/spi/spi-bcm2835.c